<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../../dist/mini-vue.js"></script>
</head>

<body>
    <div id="app">
        <div>{{test.value}}</div>
        <input v-model="test.value">
    </div>
    <script>
        const { createApp, ref, reactive } = MiniVue
        createApp({
            setup() {
                const items = reactive([
                    { name: 'jack' },
                    { name: 'dongyue' }
                ])
                const test = ref("hello")
                const count = ref(0)
                const ok = ref(true)
                const add = () => {
                    ok.value = !ok.value
                    console.log('123');
                }
                return {
                    count,
                    add,
                    items,
                    ok,
                    test
                }
            }
        }).mount('#app')
    </script>
</body>

</html>